//
//  ImageButton.m
//  YunGui
//
//  Created by HanenDev on 16/5/20.
//  Copyright © 2016年 hanen. All rights reserved.
//

#import "ImageButton.h"

@implementation ImageButton

- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    
    CGFloat W = 20;
    CGRect rect = CGRectMake(contentRect.size.width - 40, 10, W, W);
    return rect;
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    
    CGRect rect = CGRectMake(0, 0, contentRect.size.width, contentRect.size.height);
    return rect;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
